import { xhlGet } from '../../utils/request'
Page({
  data: {
    vtabs: []
  },

  // 请求分类数据
  getCateHandler() {
    xhlGet('/categories', { _embed: 'goods' })
    .then(res => {
      console.log(res)
      this.setData({ vtabs: res })
    })
  },

  onLoad() {
    this.getCateHandler()
  }
})